/* 移动端基础设置 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
}

/* 侧边导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: -250px; /* 初始隐藏 */
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    z-index: 1000;
    transition: left 0.3s ease;
}

/* 菜单按钮样式 */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #2c3e50;
    border-radius: 5px;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span::before {
    transform: translateY(-8px);
}

.menu-toggle span::after {
    transform: translateY(8px);
}

/* 菜单打开时的样式 */
.menu-open header {
    left: 0;
}

.menu-open .menu-toggle span {
    background-color: transparent;
}

.menu-open .menu-toggle span::before {
    transform: rotate(45deg);
}

.menu-open .menu-toggle span::after {
    transform: rotate(-45deg);
}

/* 导航菜单样式 */
nav {
    padding: 60px 0 20px;
}

nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
    width: 100%;
}

nav ul li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #34495e;
}

/* 主要内容区域调整 */
section {
    padding: 1rem;
    margin-top: 0;
    position: relative;
}

#hero {
    margin-top: -220px;
    height: 40vh;
    min-height: 200px;
}

#hero h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
}

/* 轮播图调整 */
.slideshow-container {
    margin: 0;
    width: 100%;
}

.slides img {
    height: 200px;
}

.slide-caption {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.prev, .next {
    padding: 0.5rem;
    font-size: 1rem;
}

/* 网格布局调整 */
.attractions-grid,
.accommodation-options,
.restaurant-list,
.must-try-foods,
.tips-container {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* 日历调整 */
.transportation-container {
    grid-template-columns: 1fr;
}

.calendar-grid {
    font-size: 0.8rem;
}

.calendar-days span {
    padding: 0.3rem;
}

/* 酒店信息调整 */
.hotel-list li {
    margin-bottom: 1rem;
}

.hotel-route ul {
    margin-left: 1rem;
}

/* 美食部分调整 */
.food-container {
    padding: 0;
}

.restaurant {
    margin-bottom: 1rem;
}

/* 底部信息调整 */
footer {
    padding: 1rem;
}

.footer-info {
    text-align: left;
}

.footer-info ul li {
    margin-bottom: 0.8rem;
}

/* 触摸优化 */
button,
input,
select,
textarea {
    font-size: 16px;
}

a, button {
    min-height: 44px;
    min-width: 44px;
    padding: 0.8rem;
}

/* 间距优化 */
h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0;
}

p {
    margin: 0.5rem 0;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 滚动优化 */
.scrollable {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* 添加响应式调整 */
@media (max-width: 375px) {
    main {
        padding-top: 250px;
    }
    
    #hero {
        margin-top: -190px;
    }
    
    nav ul li a {
        padding: 6px 0;
        font-size: 0.9rem;
    }
} 